home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
lib
/
mntlib44.zoo
/
mntlib
/
strlen.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-17
|
321b
|
19 lines
/* from Henry Spencer's stringlib */
#include <string.h>
#undef strlen
/*
* strlen - length of string (not including NUL)
*/
size_t
strlen(scan)
register const char *scan;
{
register const char *start = scan+1;
if (!scan) return 0;
while (*scan++ != '\0')
continue;
return (size_t)((long)scan - (long)start);
}